/**
 * Created by fake on 17/8/28.
 */
import send from '../../http'
export default {
  updateNotifySet (data) {
    let req = {
      data,
      action: 'config.account.saveNotifyConfig'
    }
    return send.fetch(req, 'post')
  },
  identification (data) {
    let req = {
      data,
      action: 'cc.getCCSessionId'
    }
    return send.fetch(req, 'post')
  },
  getAccountInfo (data) {
    let req = {
      data,
      action: 'app.user.getAccountInfo'
    }
    return send.fetch(req, 'post')
  },
  updateAccountInfo (data) {
    let req = {
      data,
      action: 'config.account.updateAccountBaseInfo'
    }
    return send.fetch(req, 'post')
  },
  addLicence (data) {
    let req = {
      data,
      action: 'app.licence.addLicence2Test'
    }
    return send.fetchByBill(req, 'post')
  },
  finishPay (data) {
    let req = {
      data,
      action: 'app.account.getAccountInfoById'
    }
    return send.fetchByBill(req, 'post')
  },
  finishBankPay (data) {
    let req = {
      data,
      action: 'config.account.getAccountInfoById'
    }
    return send.fetch(req, 'post')
  },
  getAllLicenceList (data) {
    let req = {
      data,
      action: 'app.licence.getAllLicenceList'
    }
    return send.fetchByBill(req, 'post')
  },
  getLittleStreetList (data) {
    let req = {
      data,
      action: 'robot.getRobotInfo'
    }
    return send.fetchByBill(req, 'post')
  },
  LicenceBalancePay (data) {
    let req = {
      data,
      action: 'app.pay.LicenceBalancePay'
    }
    return send.fetchByBill(req, 'post')
  },
  getLicenceById (data) {
    let req = {
      data,
      action: 'app.licence.getLicenceById'
    }
    return send.fetchByBill(req, 'post')
  },
  updateRenewLicence (data) {
    let req = {
      data,
      action: 'app.pay.updateRenewLicence'
    }
    return send.fetchByBill(req, 'post')
  },
  updateLicenceAndBalance (data) {
    let req = {
      data,
      action: 'app.pay.updateLicenceAndBalance'
    }
    return send.fetchByBill(req, 'post')
  },
  queryRobot (data) {
    let req = {
      data,
      action: 'config.channel.queryRobotById'
    }
    return send.fetch(req, 'post')
  },
  saveRobot (data) {
    let req = {
      data,
      action: 'config.channel.addRobotCfg'
    }
    return send.fetch(req, 'post')
  },
  showRobotLoginUrl (data) {
    let req = {
      data,
      action: 'config.channel.robotLogin'
    }
    return send.fetch(req, 'post')
  },
  redirectcenter (data) {
    let req = {
      data,
      action: 'cc.getCCSessionId'
    }
    return send.fentchByPub2CC(req, 'post')
  },
  // ==============  充值按钮能否使用  计费配置
  queryPlatformAccount (data) {
    let req = {
      data,
      action: 'queryPlatformAccount'
    }
    return send.fetch(req, 'post')
  }
  // ===============
}
